package com.example.fresh_fruit.service;

import com.example.fresh_fruit.entity.Purchase;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author :飞天の鱼
 * @date : 2022/8/18 15:02
 */
@Repository
public interface PurchaseService {

    List<Purchase> selectAll();


    /**
     * 生成采购表
     * @return
     */
    int insertPurchase(LocalDateTime startTime);

    /**
     * @return
     * 修改订单详情中的状态
     */
    int updataState();

    /**
     * @param id
     * 根据采购表id
     * @return
     */
    Purchase selectById(Integer id);
}
